package com.linsen.erp.admin.config;

import com.linsen.core.rabbitmq.constant.QueueConstant;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zhaoyong
 * @date 2023/3/14
 */
@Configuration
public class RabbitMQConfiguration {
    @Bean
    public Queue logQueue() {
        return QueueBuilder.durable(QueueConstant.SYSTEM_LOG_DIRECT_QUEUE).build();
    }
}
